//
//  StringResponse.m
//  SuoSiApp
//
//  Created by zhang on 16/4/26.
//  Copyright © 2016年 Ym. All rights reserved.
//

#import "StringResponse.h"

@implementation StringResponse

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"Data"]) {

        if (value) {
        }
        
//       [self.Data setValuesForKeysWithDictionary:dic];
        
    }
    
}

- (void)dealWithData:(NSData *)data{

    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingMutableContainers) error:nil];
//    根据收到的data  给自己的属性 赋值

    NSLog(@"%@",dic);
    
    [self setValuesForKeysWithDictionary:dic];
    if ([self.Code isEqualToString:@"0"]) {
        [PKRequestManager showAlertView:@"提交成功"];
    } else {
        [PKRequestManager showAlertView:self.Message];
    }

 
}
- (void)dealNoNoteWithData:(NSData *)data{
    
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingMutableContainers) error:nil];
    //    根据收到的data  给自己的属性 赋值
    
    NSLog(@"%@",dic);
    
    [self setValuesForKeysWithDictionary:dic];
    if ([self.Code isEqualToString:@"0"]) {
    } else {
//        [PKRequestManager showAlertView:self.Message];
    }
    
    
}


//  给自己的属性赋值
//- (void)setValues


@end
